/*
 * @Author: your name
 * @Date: 2020-08-24 17:16:29
 * @LastEditTime: 2020-08-27 14:14:33
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \examlist\src\api\ViewQuestions.js
 */
import { getUrl, putUrl } from '../utils/https'
// 获取所有试题        下半部分页面渲染
export const getAllExams = (data) => {
  return getUrl('/exam/questions/new', data)
}
// 编辑                下半部分点击编辑
export const EditExams = (data) => {
  return putUrl('/exam/questions', data)
}
// 获取所有课程类型    多选框渲染
export const getAllType = (data) => {
  return getUrl('/exam/subject', data)
}
// 获取所有试题类型   下拉框渲染
export const getAllQuestionsType = (data) => {
  return getUrl('/exam/getQuestionsType', data)
}

// 获取所有考试类型   下拉框渲染
export const getAllExamType = (data) => {
  return getUrl('/exam/examType', data)
}

// 按条件获取试题    搜索
export const SearchExams = (data) => {
  return getUrl('/exam/questions/condition', data)
}
